

CFLAGS = -I../include -g

test_config : test_config.o config_file.o
	$(CC) $(CFLAGS) -o $@ $^
	
	
test_config.o : test_config.c
	$(CC) $(CFLAGS) -c -o $@ $^

config_file.o : ../file/config_file.c ../file/config_file.h ../include/cm_str.h
	$(CC) $(CFLAGS) -c -o $@ $<
	
.phony = clean
clean:
	rm -rf *.o
	rm -rf test_config